package com.example.pet.controller;

import com.example.pet.dao.ShoppingcartDao;
import com.example.pet.service.ShoppingcartService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api(value = "shoppingcart", tags = "购物车接口")
    @RequestMapping("/shoppingcart")
public class ShoppingcartController {
    @Resource
    private ShoppingcartService shoppingcartService;
 @GetMapping("/all")
    public Object getAll(Integer userId) {
     return  shoppingcartService.queryAll(userId);
    }


}

